package com.fulu.game.bi.controller;

import com.fulu.game.bi.common.exception.BizException;
import com.fulu.game.bi.entity.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1")
public class TestController {

    @RequestMapping("/test")
    public Result test() {
        return Result.success().data("success");
    }

    @RequestMapping("/error")
    public Result error() {
        throw new BizException("error");
    }
}
